/**
 * 
 */
package com.onlinemathuracrud.displaydecorator;


import org.displaytag.decorator.TableDecorator;

import com.onlinemathuracrud.model.master.City;

/**
 * @author Amit Kashyap
 * @createdDate Sep 9, 2013
 * @createdTime 2:51:32 AM
 */
public class CityDecorator extends TableDecorator{
	
	public CityDecorator() {
		super();
	}
	
	public String getEditUrl()
	{
		String ctx = this.getPageContext().getServletContext().getContextPath();
		City city = (City) getCurrentRowObject();
		return "<a href=\""+ctx+"/city/editcity/" + city.getCityId() + "\">EDIT</a>"; 
	}
	
	public String getDeleteUrl()
	{
		String ctx = this.getPageContext().getServletContext().getContextPath();
		City city = (City) getCurrentRowObject();
		return "<a href=\""+ctx+"/city/deletecity/" + city.getCityId() + "\">DELETE</a>"; 
	}


}

